package com.boco.blch.analysiser.compliance.HW.manager;

import com.boco.blch.analysiser.compliance.ComplianceResolved;

/**
 * yarn定期更新版本或厂商漏洞补丁安全基线要求项  控制节点
 * @author admin
 *
 */
public class BOCO_Yarn_VersionManage_CycleUpdate implements ComplianceResolved {

	private final static String version = "version=0.28.1";
	
	@Override
	public int realEchoResolved(String echoResult) {
		int result = FAILED;
		if(echoResult != null && echoResult.length() > 0){
			if(echoResult.indexOf(" ") != -1){
				echoResult = echoResult.replace(" ", "");
			}
			if(echoResult.contains(version)){
				result = SUCCESS;
			}
		}
		return result;
	}


}
